package chap3_11;

import java.util.Scanner;

public class Exer3_11_12 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入数组中的数：");
        int[]num=new int[5];
        int sum=0;
        for(int i=0;i<num.length;i++){
           num[i]=input.nextInt();
           sum+=num[i];
        }
        int avg=sum/num.length;
        for(int j=0;j<num.length;j++){
            if(num[j]>avg){
                System.out.println(num[j]+" ");
            }
        }
    }
}
